
{literal}
<script language="javascript" type="text/javascript">
    $(function(){
        $(".unregister_profile_button").click(
            function() { window.location = {/literal}"{$unregisterProfileUrl}"{literal} }
        );
   });
</script>
{/literal}

{$contentMenu}

{block_decorator name="box" type="empty" addClass="ow_superwide ow_automargin" }
    <div class="clearfix ow_stdmargin"><div class="ow_right">{$changePassword}</div></div>
{/block_decorator}

{block_decorator name="box" type="empty" addClass="ow_superwide ow_automargin"}
{if isset($editSynchronizeHook)}
    {block_decorator name="box" addClass="ow_center" iconClass='ow_ic_update' langLabel='base+edit_remote_field_synchronize_title' style="overflow:hidden;"}
       {foreach from=$editSynchronizeHook item='item'}
          {$item}
       {/foreach}
    {/block_decorator}
    {block_decorator name="box" type="empty" addClass="ow_center" style="padding:15px;"}
        {text key="base+join_or"}
    {/block_decorator}
{/if}

{form name=editForm}
    <table class="ow_table_1 ow_form ow_stdmargin">
        {foreach from=$questionArray key='section' item='questions' name='question'}
            {if !empty($section) }<tr><th colspan="3">{text key="base+questions_section_`$section`_label"}</th></tr>{/if}
            {foreach from=$questions item='question'}
                <tr class="{cycle name=$section values='ow_alt1,ow_alt2'}">
                    <td class="ow_label">
                        {label name=$question.name}
                    </td>
                    <td class="ow_value">
                        {input name=$question.name}
                        <div style="height:1px;"></div>
                        {error name=$question.name}
                    </td>
                    <td class="ow_desc ow_small">
                        {question_description_lang name=$question.name}
                    </td>
                </tr>
            {/foreach}
            {if !empty($section)}{if !$smarty.foreach.question.last}<tr><td colspan="3"> </td></tr>{/if}{/if}
        {/foreach}
    </table>
	<div class="clearfix ow_stdmargin{if !$isAdmin} ow_btn_delimiter{/if}">
	   <div class="ow_right">
		   {if !$isAdmin }
				{decorator name="button" class="unregister_profile_button ow_ic_delete ow_red" langLabel='base+delete_profile'}
		   {/if}
		   {submit name='editSubmit'}
	   </div>
	</div>


{/form}
{/block_decorator}
